package com.rj.bd.kj.utils;

import java.io.*;
import java.util.Properties;

public class PropertiesUtils {

    Properties pro = new Properties();
    public void getProperties(String path) throws IOException {
        InputStreamReader in = new InputStreamReader(new FileInputStream(path),"UTF-8");
        pro.load(in);
        System.out.println(pro.get("DEFAULT_KEY"));
    }

    public static void main(String[] args) throws IOException {
        new PropertiesUtils().getProperties("D:\\IDEA项目\\basic-code\\demo\\kuangjia\\src\\main\\resources\\jm.properties");
    }
}
